package com.lhq.tag_tales.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 标签表
 * @TableName tag
 */
@TableName(value ="tag")
@Data
public class Tag implements Serializable {
    /**
     * 标签id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标签名
     */
    private String name;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 父标签id
     */
    private Integer fatherTag;

    /**
     * 是否是父标签:1-是，0-否
     */
    private Integer isFather;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除:1-是，0-否
     */
    @TableLogic
    private Integer isDelete;

    private static final long serialVersionUID = -4402608477639639815L;
}